//
//  LNNewsViewModel.m
//  LNDevelopExample
//
//  Created by wwww on 2018/9/7.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
//

#import "LNNewsViewModel.h"
#import "LNFood.h"

@interface LNNewsViewModel()

@property (nonatomic,strong) NSMutableArray *foodArray;
@end

@implementation LNNewsViewModel

- (void)initialize{
    [super initialize];
    //标题
//    LNThemeTabItem *Item = [[LNTheme shareThemeManager] getThemeWithTag:LNTabBarItemTagTypeNews];
//    self.title = Item.title;
    
    self.foodArray = [NSMutableArray array];
    
    self.title = @"最新";
    
    //隐藏分割线
    self.prefersNavigationBarBottomLineHidden = YES;
    
    //上下拉刷新
    self.shouldPullUpToLoadMore = YES;
    self.shouldPullDownToRefresh = YES;
    
}

// 获取首页数据
- (RACSignal *)requestRemoteDataSignalWithPage:(NSUInteger)page{
    
    if (page == 1){
        [self.foodArray removeAllObjects];
    }
    

    return nil;
}
@end
